package com.cafeauto.socketio;

import java.io.Serializable;
/**
 * Socket io服务 接收消息数据临时对象
 * @author fxm
 *
 */
public class SocketIOData implements Serializable{

	

	
	private static final long serialVersionUID = -7104758431826146207L;
	private String id;//消息ID
	private boolean success=true;
	private String sendTime;//推送时间
	private String eventName;//事件驱动名称
	private String busObject;//业务数据 json
	private String errorCode;
	private String errorMessage;
	private String uid;//平台主动推送时 表示推送给谁；平台接收时，表示来源是谁
	private String operator;//操作人 平台操作人员推送数据的时候才会有
	private String operationCompany;//操作者企业 平台操作人员推送数据的时候才会有 
	private String clientIp;
	public boolean isSuccess() {
		return success;
	}
	public void setSuccess(boolean success) {
		this.success = success;
	}
	
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getSendTime() {
		return sendTime;
	}
	public void setSendTime(String sendTime) {
		this.sendTime = sendTime;
	}
	public String getEventName() {
		return eventName;
	}
	public void setEventName(String eventName) {
		this.eventName = eventName;
	}
	public String getBusObject() {
		return busObject;
	}
	public void setBusObject(String busObject) {
		this.busObject = busObject;
	}
	public String getErrorCode() {
		return errorCode;
	}
	public void setErrorCode(String errorCode) {
		this.errorCode = errorCode;
	}
	public String getErrorMessage() {
		return errorMessage;
	}
	public void setErrorMessage(String errorMessage) {
		this.errorMessage = errorMessage;
	}
	
	public String getUid() {
		return uid;
	}
	public void setUid(String uid) {
		this.uid = uid;
	}
	public String getOperator() {
		return operator;
	}
	public void setOperator(String operator) {
		this.operator = operator;
	}
	public String getOperationCompany() {
		return operationCompany;
	}
	public void setOperationCompany(String operationCompany) {
		this.operationCompany = operationCompany;
	}
	public String getClientIp() {
		return clientIp;
	}
	public void setClientIp(String clientIp) {
		this.clientIp = clientIp;
	}
	
	
	    /* (非 Javadoc)
	    * 
	    * 
	    * @return
	    * @see java.lang.Object#toString()
	    */
	    
	@Override
	public String toString() {
		StringBuilder str = new StringBuilder()
				.append("id="+id)
				.append("eventName="+eventName);
		return str.toString();
	}
}
